#! /bin/bash

export SPARK_MASTER_HOST=$(cat /etc/hostname)
export SPARK_HOME=/usr/local/spark
source ${SPARK_HOME}/conf/spark-env.sh
source ${SPARK_HOME}/sbin/spark-config.sh
source ${SPARK_HOME}/bin/load-spark-env.sh

${SPARK_HOME}/bin/spark-class org.apache.spark.deploy.master.Master --host $SPARK_MASTER_HOST --port $SPARK_MASTER_PORT --webui-port $SPARK_MASTER_WEBUI_PORT


